const userModule={
    namespaced: true, 
    state:{
        isLogin:false,
        appId:"2010091553028980",
        appKey:"2",
        lmId: "1003378987",//联盟ID
        tgId: "3003357176",//推广ID
    },
    mutations: {
        setLogin(state,palyload){
            state.isLogin=palyload
        },
        chargeIsLogin(state,palyload){
            const linkLogoutElement=document.querySelector(".link-logout")
            if(!linkLogoutElement){
                state.isLogin=false
            }
            else {
                state.isLogin=true
            }
        }
    },
    actions: {
    },
}

export default userModule